package com.ionehe.group.common.uaa.ex.exception;

/**
 * Copyright (c) 2020 ionehe.com
 * Date: 2020/9/20
 * Time: 下午8:17
 *
 * @author 2020年 <a href="mailto:a@ionehe.com">秀</a>
 */
public class BusinessException extends RuntimeException{
    String error;

    public BusinessException() {
    }

    public BusinessException(String error) {
        super(error);
        this.error = error;
    }

    public BusinessException(Exception e) {
        super(e);
    }

    public BusinessException(String error, Exception e) {
        super(error, e);
    }

    public String getError() {
        return this.error;
    }
}
